#! /usr/bin/env python

class Frequency:
    def __init__(self, freq_seq):
        self.idx        = 0
        self.freq_seq   = freq_seq

    def time(self):
        ret = self.freq_seq[self.idx]
        if self.idx < len(self.freq_seq) - 1:
            self.idx += 1
        return ret

    def reset(self):
        self.idx = 0

if __name__ == '__main__':
    frequency = Frequency((32, 64, 128, 256, 512, 1024))

    for i in xrange(30):
        print frequency.time()

    frequency.reset()
    print '-' * 32

    for i in xrange(30):
        print frequency.time()

